// 总控制器层

const index = require(path.resolve(basename, 'controller/index.js'));
const register = require(path.resolve(basename, 'controller/register.js'));
const login = require(path.resolve(basename, 'controller/login.js'));
const emailcode = require(path.resolve(basename, 'controller/emailcode.js'));
const addproduct = require(path.resolve(basename, 'controller/addproduct.js'));
const product = require(path.resolve(basename, 'controller/product.js'));
const updateproduct = require(path.resolve(basename, 'controller/updateproduct.js'));
const deleteproduct = require(path.resolve(basename, 'controller/deleteproduct.js'));
const searchproduct = require(path.resolve(basename, 'controller/searchproduct.js'));
const searchOrder = require(path.resolve(basename, 'controller/searchOrder.js'));
const order = require(path.resolve(basename, 'controller/order.js'));

module.exports = {
    index,
    register,
    emailcode,
    login,
    addproduct,
    product,
    updateproduct,
    deleteproduct,
    searchproduct,
    order,
    searchOrder
}